package com.example.zyl.common.utils;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.XML;

import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.stream.Collectors;

public class XmlUtils {

    public static JSONObject convertXmlToJson(String xmlStr) throws Exception {
        // 将XML字符串转换为JSONObject
        // 返回JSON字符串
        String xml = XML.toXml(xmlStr);

        return XML.toJSONObject(xmlStr);
    }


    public static void main(String[] args) throws Exception {
        String xml = "<!--  HL7/FDA Annotated ECG  -->\n" +
                "<!--  File created on 02/14/2019 13:49:02  -->\n" +
                "<AnnotatedECG xmlns=\"urn:hl7-org:v3\" xmlns:voc=\"urn:hl7-org:v3/voc\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3/HL7/aECG/2003-12/schema/PORT_MT020001.xsd\">\n" +
                "<id root=\"037884f0-018c-b2b0-0032-52d00155a8d8\"/>\n" +
                "<code code=\"93000\" codeSystem=\"2.16.840.1.113883.6.12\"/>\n" +
                "<effectiveTime>\n" +
                "<!-- 波形采集开始时间 -->\n" +
                "<low value=\"20190214134741\"/>\n" +
                "<!-- 波形采集结束时间 -->\n" +
                "<high value=\"20190214134751\"/>\n" +
                "</effectiveTime>\n" +
                "<componentOf>\n" +
                "<timepointEvent>\n" +
                "<code/>\n" +
                "<componentOf>\n" +
                "<subjectAssignment>\n" +
                "<subject>\n" +
                "<trialSubject>\n" +
                "<!-- ID编码 -->\n" +
                "<id root=\"0e0c5810-00b1-94f0-0038-1378008306f8\" extension=\"190118051\"/>\n" +
                "<!-- 子ID -->\n" +
                "<patientid extension=\"19950809\"/>\n" +
                "<!-- 技师 -->\n" +
                "<technician extension=\"\"/>\n" +
                "<subjectDemographicPerson>\n" +
                "<!-- 病人姓名 -->\n" +
                "<name>\n" +
                "<family>张三</family>\n" +
                "<given/>\n" +
                "</name>\n" +
                "<!-- 病人性别 Male（M）：男; Female（F）：女； Undifferentiated（UN）: 未知 -->\n" +
                "<administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\" codeSystemName=\"AdministrativeGender\" displayName=\"Female\"/>\n" +
                "<!-- 生日 -->\n" +
                "<birthTime value=\"\"/>\n" +
                "</subjectDemographicPerson>\n" +
                "</trialSubject>\n" +
                "</subject>\n" +
                "<componentOf>\n" +
                "<clinicalTrial>\n" +
                "<id root=\"048dc580-01b5-e1a8-0039-ffa8003cce68\"/>\n" +
                "<title/>\n" +
                "<componentOf>\n" +
                "<clinicalTrialProtocol>\n" +
                "<id root=\"0e970be0-00c6-2a78-003b-ebd801ea99c0\"/>\n" +
                "<title/>\n" +
                "</clinicalTrialProtocol>\n" +
                "</componentOf>\n" +
                "<author>\n" +
                "<clinicalTrialSponsor>\n" +
                "<sponsorOrganization>\n" +
                "<id root=\"05185240-01ca-7730-003d-d42001a46130\"/>\n" +
                "<name/>\n" +
                "</sponsorOrganization>\n" +
                "</clinicalTrialSponsor>\n" +
                "</author>\n" +
                "<location>\n" +
                "<trialSite>\n" +
                "<id root=\"0f21bfb0-00da-c3e8-003f-c050015e2c88\" extension=\"0\"/>\n" +
                "<location>\n" +
                "<name/>\n" +
                "</location>\n" +
                "</trialSite>\n" +
                "</location>\n" +
                "<responsibleParty>\n" +
                "<trialInvestigator>\n" +
                "<id root=\"05a30610-01df-0cb8-0041-ac800117f3f8\"/>\n" +
                "<investigatorPerson>\n" +
                "<name/>\n" +
                "</investigatorPerson>\n" +
                "</trialInvestigator>\n" +
                "</responsibleParty>\n" +
                "</clinicalTrial>\n" +
                "</componentOf>\n" +
                "</subjectAssignment>\n" +
                "</componentOf>\n" +
                "</timepointEvent>\n" +
                "</componentOf>\n" +
                "<component>\n" +
                "<series>\n" +
                "<id root=\"0d81cb50-009c-ff68-0034-3f00010f7430\"/>\n" +
                "<code code=\"RHYTHM\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Rhythm Waveforms\"/>\n" +
                "<effectiveTime>\n" +
                "<!-- 波形采集开始时间 -->\n" +
                "<low value=\"20190214134741\"/>\n" +
                "<!-- 波形采集停止时间 -->\n" +
                "<high value=\"20190214134751\"/>\n" +
                "</effectiveTime>\n" +
                "<author>\n" +
                "<seriesAuthor>\n" +
                "<manufacturedSeriesDevice>\n" +
                "<!-- 机器设备号 -->\n" +
                "<id extension=\"FE07190022\"/>\n" +
                "<!-- 机器型号 -->\n" +
                "<manufactureModelName>iE 15</manufactureModelName>\n" +
                "</manufacturedSeriesDevice>\n" +
                "<!-- 机器厂家 -->\n" +
                "<manufactureOrganization>\n" +
                "<name>Biocare</name>\n" +
                "</manufactureOrganization>\n" +
                "</seriesAuthor>\n" +
                "</author>\n" +
                "<controlVariable>\n" +
                "<controlVariable>\n" +
                "<!-- 低通滤波设置参数 -->\n" +
                "<code code=\"MDC_ECG_CTL_VBL_ATTR_FILTER_LOW_PASS\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\" displayName=\"Low pass filter\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"100\" unit=\"Hz\"/>\n" +
                "</controlVariable>\n" +
                "</controlVariable>\n" +
                "<controlVariable>\n" +
                "<controlVariable>\n" +
                "<!-- 基线漂移滤波设置参数 -->\n" +
                "<code code=\"MDC_ECG_CTL_VBL_ATTR_FILTER_HIGH_PASS\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\" displayName=\"High pass filter\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"0.5\" unit=\"Hz\"/>\n" +
                "</controlVariable>\n" +
                "</controlVariable>\n" +
                "<controlVariable>\n" +
                "<controlVariable>\n" +
                "<!-- 交流滤波设置参数 -->\n" +
                "<code code=\"MDC_ECG_CTL_VBL_ATTR_FILTER_NOTCH\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\" displayName=\"Notch filter\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"50\" unit=\"Hz\"/>\n" +
                "</controlVariable>\n" +
                "</controlVariable>\n" +
                "<component>\n" +
                "<sequenceSet>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<code code=\"TIME_ABSOLUTE\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Absolute Time\"/>\n" +
                "<value xsi:type=\"GLIST_TS\">\n" +
                "<head value=\"20190214134741.000\"/>\n" +
                "<increment value=\"0.001\" unit=\"s\"/>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- I导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_I\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据I一个单位对应的电压，比如scale=1.145uV, 即digits中的数字47表示 47*1.145=53.8uV -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- I导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-3 -3 -3 -1 ...... 47 49 51 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- II导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_II\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据II一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- II导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-53 -53 -53 ...... 45 47 49 51 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- III导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_III\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据III一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- III导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-50 -50 -50 ...... 46 48 50 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- AVR导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_AVR\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据AVR一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- AVR导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>28 28 28 ...... -24 -25 -26 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- AVL导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_AVL\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "\\\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据AVL一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- AVL导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>24 24 24 26 ...... -22 -23 -24 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- AVF导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_AVF\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据AVF一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- AVF导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-51 -51 -51 ...... 47 49 51 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- V1导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V1\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据V1一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- V1导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>35 35 35 35 ...... 43 41 41 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- V2导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V2\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据V2一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- V2导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>7 5 7 7 ...... 25 23 23 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- V3导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V3\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据V3一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- V3导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-45 -45 -45 -47 ....... -21 -21 -23 -23 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- V4导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V4\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据V4一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- V4导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-17 -17 -17 -17 ...... -51 -51 -53 -53 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- V5导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V5\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据V5一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- V5导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-17 -19 -21 ...... -59 -57 -57 -57 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- V6导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V6\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续导联数据V6一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- V6导联数据时间长度可变，10~24s，采样率1000Hz -->\n" +
                "<digits>-5 -7 -9 -11 ...... 41 -41 -39 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "</sequenceSet>\n" +
                "</component>\n" +
                "<subjectOf>\n" +
                "<annotationSet>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- 心率 -->\n" +
                "<code code=\"MDC_ECG_HEART_RATE\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"67\" unit=\"bpm\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- P时限 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_P\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"104\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- QRS时限 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_QRS\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"115\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- RR间期 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_RR\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"900\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- PR间期 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_PR\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"164\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- PQ间期 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_PQ\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"164\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- QT间期 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_QT\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"410\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- QTC间期 -->\n" +
                "<code code=\"MDC_ECG_TIME_PD_QTc\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"422\" unit=\"ms\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- P电轴 -->\n" +
                "<code code=\"MDC_ECG_ANGLE_P_FRONT\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"66\" unit=\"degrees\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- QRS电轴 -->\n" +
                "<code code=\"MDC_ECG_ANGLE_QRS_FRONT\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"77\" unit=\"degrees\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- T电轴 -->\n" +
                "<code code=\"MDC_ECG_ANGLE_T_FRONT\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"54\" unit=\"degrees\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<code code=\"MDC_ECG_INTERPRETATION\" codeSystem=\"2.16.840.1.113883.6.24\"/>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- 分析结果 -->\n" +
                "<code code=\"MDC_ECG_INTERPRETATION_STATEMENT\" codeSystem=\"2.16.840.1.113883.6.24\"/>\n" +
                "<value xsi:type=\"ST\">8110 窦性心律</value>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- 诊断结论 -->\n" +
                "<code code=\"MDC_ECG_INTERPRETATION_SUMMARY\" codeSystem=\"2.16.840.1.113883.6.24\"/>\n" +
                "<value xsi:type=\"ST\">1010 ** 正常心电图 **</value>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<code code=\"MDC_ECG_BEAT\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"CE\" code=\"MDC_ECG_BEAT_NORMAL\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<code code=\"MDC_ECG_WAVC\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"CE\" code=\"MDC_ECG_WAVC_PWAVE\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<support>\n" +
                "<supportingROI>\n" +
                "<code code=\"ROIPS\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n" +
                "<component>\n" +
                "<boundary>\n" +
                "<code code=\"TIME_RELATIVE\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Relative Time\"/>\n" +
                "<value xsi:type=\"IVL_PQ\">\n" +
                "<low value=\"315\" unit=\"ms\"/>\n" +
                "<high value=\"419\" unit=\"ms\"/>\n" +
                "</value>\n" +
                "</boundary>\n" +
                "</component>\n" +
                "</supportingROI>\n" +
                "</support>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<code code=\"MDC_ECG_WAVC\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"CE\" code=\"MDC_ECG_WAVC_QRSWAVE\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<support>\n" +
                "<supportingROI>\n" +
                "<code code=\"ROIPS\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n" +
                "<component>\n" +
                "<boundary>\n" +
                "<code code=\"TIME_RELATIVE\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Relative Time\"/>\n" +
                "<value xsi:type=\"IVL_PQ\">\n" +
                "<low value=\"479\" unit=\"ms\"/>\n" +
                "<high value=\"594\" unit=\"ms\"/>\n" +
                "</value>\n" +
                "</boundary>\n" +
                "</component>\n" +
                "</supportingROI>\n" +
                "</support>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<code code=\"MDC_ECG_WAVC\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"CE\" code=\"MDC_ECG_WAVC_TWAVE\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<support>\n" +
                "<supportingROI>\n" +
                "<code code=\"ROIPS\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n" +
                "<component>\n" +
                "<boundary>\n" +
                "<code code=\"TIME_RELATIVE\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Relative Time\"/>\n" +
                "<value xsi:type=\"IVL_PQ\">\n" +
                "<high value=\"889\" unit=\"ms\"/>\n" +
                "</value>\n" +
                "</boundary>\n" +
                "</component>\n" +
                "</supportingROI>\n" +
                "</support>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- RV5电压 -->\n" +
                "<methodCode code=\"Biocare_RV5\" codeSystem=\"2.16.840.1.113883.5.84\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"1.97\" unit=\"mV\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- SV1电压 -->\n" +
                "<methodCode code=\"Biocare_SV1\" codeSystem=\"2.16.840.1.113883.5.84\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"0.32\" unit=\"mV\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- RV5+SV1电压 -->\n" +
                "<methodCode code=\"Biocare_RV5_PLUS_SV1\" codeSystem=\"2.16.840.1.113883.5.84\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"2.30\" unit=\"mV\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- 走纸速度 -->\n" +
                "<methodCode code=\"Biocare_PAPER_SPEED\" codeSystem=\"2.16.840.1.113883.5.84\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"25\" unit=\"mm/s\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "<component>\n" +
                "<annotation>\n" +
                "<!-- 增益 -->\n" +
                "<methodCode code=\"Biocare_GAIN\" codeSystem=\"2.16.840.1.113883.5.84\"/>\n" +
                "<value xsi:type=\"PQ\" value=\"10\" unit=\"mm/mV\"/>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "</annotation>\n" +
                "</component>\n" +
                "</annotationSet>\n" +
                "</subjectOf>\n" +
                "<derivation>\n" +
                "<derivedSeries>\n" +
                "<id root=\"040311b0-01a1-4c20-0036-274800c93ba0\"/>\n" +
                "<code code=\"REPRESENTATIVE_BEAT\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Representative Beat Waveforms\"/>\n" +
                "<effectiveTime>\n" +
                "<!-- 波形数据采集开始时间 -->\n" +
                "<low value=\"20190214134741\"/>\n" +
                "<!-- 波形数据采集停止时间 -->\n" +
                "<high value=\"20190214134751\"/>\n" +
                "</effectiveTime>\n" +
                "<component>\n" +
                "<sequenceSet>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<code code=\"TIME_RELATIVE\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"ActCode\" displayName=\"Relative Time\"/>\n" +
                "<value xsi:type=\"GLIST_PQ\">\n" +
                "<head value=\"0.000\" unit=\"s\"/>\n" +
                "<increment value=\"0.001\" unit=\"s\"/>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏I导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_I\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据I一个单位对应的电压，比如scale=1.145uV, 即digits中的数字47表示 47*1.145=53.8uV -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏I导联数据 1.5s -->\n" +
                "<digits>-4 -4 -4 -2 ...... 4 4 2 4 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏II导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_II\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据II一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏II导联数据 1.5s  -->\n" +
                "<digits>-48 -48 -46 ...... 52 52 52 52 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏III导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_III\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据III一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏III导联数据 1.5s -->\n" +
                "<digits>-44 -44 -42 ...... 48 50 48 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏AVR导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_AVR\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据AVR一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏AVR导联数据 1.5s -->\n" +
                "<digits>26 26 26 ...... -28 -26 -28 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏AVL导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_AVL\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据AVL一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏AVL导联数据 1.5s -->\n" +
                "<digits>20 20 20 ...... -22 -24 -22 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏AVF导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_AVF\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据AVF一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏AVF导联数据 1.5s -->\n" +
                "<digits>-46 -46 -44 ...... 50 52 50</digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏V1导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V1\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据V1一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏V1导联数据 1.5s -->\n" +
                "<digits>36 36 36 ...... 34 34 34</digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏V2导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V2\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据V2一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏V2导联数据 1.5s  -->\n" +
                "<digits>4 4 4 ...... 16 16 14</digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏V3导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V3\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据V3一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏V3导联数据 1.5s -->\n" +
                "<digits>-50 -50 -50 ...... -30 -32 -32</digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏V4导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V4\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据V4一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏V4导联数据 1.5s -->\n" +
                "<digits>-30 -30 -32 ...... -58 -60 -60</digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏V5导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V5\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据V5一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏V5导联数据 1.5s -->\n" +
                "<digits>-32 -32 -34 ...... -54 -54 -56 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "<component>\n" +
                "<sequence>\n" +
                "<!-- 代表心搏V6导联 -->\n" +
                "<code code=\"MDC_ECG_LEAD_V6\" codeSystem=\"2.16.840.1.113883.6.24\" codeSystemName=\"MDC\"/>\n" +
                "<value xsi:type=\"SLIST_PQ\">\n" +
                "<!-- 备用字段，暂无实际意义 -->\n" +
                "<origin value=\"0.000\" unit=\"uV\"/>\n" +
                "<!-- 表示后续代表心搏导联数据V6一个单位对应的电压 -->\n" +
                "<scale value=\"1.145\" unit=\"uV\"/>\n" +
                "<!-- 代表心搏V6导联数据 1.5s -->\n" +
                "<digits>-16 -18 -18 ...... -42 -44 -44 </digits>\n" +
                "</value>\n" +
                "</sequence>\n" +
                "</component>\n" +
                "</sequenceSet>\n" +
                "</component>\n" +
                "</derivedSeries>\n" +
                "</derivation>\n" +
                "</series>\n" +
                "</component>\n" +
                "</AnnotatedECG>";
        JSONObject entries = convertXmlToJson(xml);
        JSONObject annotatedEcg = entries.getJSONObject("AnnotatedECG");

        JSONObject componentOf = annotatedEcg.getJSONObject("componentOf");
        JSONObject trialSubject = componentOf.getJSONObject("timepointEvent")
                .getJSONObject("componentOf")
                .getJSONObject("subjectAssignment")
                .getJSONObject("subject").getJSONObject("trialSubject");
        //学生Id
        String studentId = trialSubject.getJSONObject("id").getStr("extension");

        JSONObject series = annotatedEcg.getJSONObject("component").getJSONObject("series");
        //心率相关的
        JSONArray component = series.getJSONObject("subjectOf").getJSONObject("annotationSet").getJSONArray("component");
        //心率值
        for (Object o : component) {
            JSONObject comp = (JSONObject) o;
            JSONObject annotation = comp.getJSONObject("annotation");
            //MDC_ECG_HEART_RATE
            JSONObject codes = annotation.getJSONObject("code");
            JSONObject values = annotation.getJSONObject("value");
            //结果
            if (values == null) {
                JSONArray jsonArray = annotation.getJSONArray("component");
                for (Object o1 : jsonArray) {
                    JSONObject comps = (JSONObject) o1;
                    //分析结果和诊断结论
                    String code1 = comps.getJSONObject("annotation").getJSONObject("code").getStr("code");
                    String content = comps.getJSONObject("annotation").getJSONObject("value").getStr("content");

                }
            } else {
                //MDC_ECG_HEART_RATE
                String code = codes.getStr("code");
                //心率值
                String value = values.getStr("value");

            }
        }
        //代表心搏工导联
        JSONArray derivationComponents = series.getJSONObject("derivation").getJSONObject("derivedSeries").getJSONObject("component").getJSONObject("sequenceSet").getJSONArray("component");
        for (Object o : derivationComponents) {
            JSONObject comp = (JSONObject) o;
            JSONObject sequence = comp.getJSONObject("sequence");
            JSONObject codes = sequence.getJSONObject("code");
            JSONObject values = sequence.getJSONObject("value");
            //MDC_ECG_LEAD_I
            String code = codes.getStr("code");
            //-4 -4 -4 -2 ...... 4 4 2 4
            String digits = values.getStr("digits");

        }

        String bye = "49 51 60 68 65 52 42 45 58 64 59 55 54 60 63 48 30 26 36 50 52 40 33 40 46 47 49 48 44 34 28 23 23 31 42 45 42 36 28 25 32 39 41 44 44 34 24 21 26 26 22 22 23 28 34 39 43 48 54 54 54 59 41 24 25 29 22 16 19 23 32 37 39 41 40 30 22 28 36 37 33 28 35 34 32 29 25 29 37 40 39 31 27 33 34 28 33 54 75 63 33 21 24 26 33 49 54 45 38 40 45 44 38 34 29 28 21 23 32 38 38 59 61 46 52 53 52 55 52 43 43 49 46 40 46 57 67 39 27 27 33 39 41 43 45 47 53 56 50 46 46 45 55 68 65 57 55 58 54 41 40 44 48 48 44 50 50 49 49 55 61 62 56 41 36 35 40 40 39 45 52 53 47 40 37 37 40 42 50 48 52 42 46 41 44 49 45 41 34 32 38 46 49 47 43 37 40 49 49 49 48 35 30 33 39 45 47 36 41 42 53 53 42 34 33 45 35 39 37 39 46 41 39 35 44 52 44 36 35 52 53 51 46 48 42 28 38 35 28 23 25 26 31 34 38 37 32 37 39 33 38 38 41 41 32 28 27 32 32 35 41 39 28 18 14 18 18 22 24 23 20 25 26 30 34 28 33 45 43 30 20 30 46 41 39 37 23 16 11 20 26 31 28 28 29 18 25 30 25 18 18 24 35 23 22 23 37 37 21 19 19 25 35 31 28 24 29 26 24 24 31 31 36 39 44 43 49 46 53 59 63 60 68 68 64 62 62 77 88 85 81 87 92 107 100 98 90 87 94 102 106 104 98 91 84 84 85 93 100 102 102 96 83 82 83 82 96 107 106 110 115 117 113 96 94 96 101 99 107 108 105 103 96 86 84 80 75 75 75 70 67 67 69 74 70 69 66 52 49 51 50 39 58 60 45 29 33 31 21 7 -3 3 10 7 4 7 5 3 1 -3 -1 7 3 -1 -1 -1 -4 -6 -6 -9 -16 -13 -8 -9 -13 -5 3 2 1 2 -1 -3 2 -6 -5 2 5 1 6 4 -6 -11 -5 -1 2 9 2 -21 -19 -8 -1 -10 -4 -3 3 3 -3 -6 -4 -15 -19 -10 -4 5 5 7 -2 -8 -4 -1 -8 -10 -14 -21 -28 -34 -37 -33 -26 -20 -25 -28 -15 -7 8 16 27 29 43 63 86 101 123 147 162 171 185 206 235 271 311 352 396 438 495 548 591 639 685 716 729 726 726 717 718 722 711 687 674 624 563 488 428 399 381 358 323 292 249 219 215 199 181 177 167 154 140 136 139 132 128 130 129 129 129 129 130 132 130 123 121 126 120 112 107 112 105 106 101 75 73 70 65 61 58 47 33 28 26 37 40 25 18 10 15 21 27 34 33 28 31 36 30 21 31 29 30 33 29 26 23 18 14 14 23 26 30 32 32 30 23 21 11 13 19 22 29 34 33 23 16 14 13 12 16 24 29 33 27 34 39 37 39 28 21 17 14 27 27 20 9 6 5 5 14 24 34 30 31 33 32 33 23 15 13 20 29 33 36 27 27 33 31 34 34 46 44 36 38 32 39 41 44 41 39 34 40 43 39 32 30 36 47 50 46 46 46 47 47 51 51 56 52 41 45 60 65 61 56 48 51 58 56 61 69 67 66 63 61 63 59 60 71 83 97 88 74 65 57 60 68 76 79 81 83 88 93 97 90 91 94 104 112 115 111 110 108 113 113 118 117 114 114 111 117 127 137 146 149 145 145 150 157 149 151 154 150 149 150 152 157 155 149 154 160 168 175 179 178 183 181 169 170 159 158 163 172 188 188 183 184 183 173 177 185 186 177 177 181 181 188 195 194 181 174 180 187 185 175 167 170 170 167 169 177 178 165 156 148 145 136 135 143 143 137 141 141 138 134 127 126 125 122 121 120 117 109 104 104 95 93 90 87 87 97 99 92 82 79 76 78 79 75 66 61 59 54 44 34 38 47 57 53 35 27 34 44 43 39 40 38 39 38 36 40 36 36 36 32 35 37 27 28 30 20 17 16 15 18 26 39 36 20 17 12 10 19 30 32 18 13 16 20 22 24 22 15 8 12 25 34 23 13 1 -2 4 7 10 9 7 11 8 3 7 23 40 39 28 10 0 8 7 2 -7 -11 -1 12 23 28 24 14 13 5 1 4 10 10 17 21 21 19 14 13 18 20 19 18 20 22 19 26 26 23 7 8 7 13 26 32 34 31 20 20 23 22 15 10 21 28 25 17 17 17 12 10 10 12 21 29 36 35 25 26 32 34 30 27 23 24 27";
        String s = EncryptUtils.encryptBySm4(bye, "1234567890123456");

        System.out.println(s);
    }


}
